package com.wang.home.service.impl;

import com.wang.home.entity.Menu;
import com.wang.home.mapper.MenuMapper;
import com.wang.home.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author wang
 * @since 2021-04-30
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public Set<String> findPermissionsByStudentName(String studentName) {
        return menuMapper.findPermissionsByStudentName(studentName);
    }
}
